package analysis;

import java.util.ArrayList;

import objects.SpeedLogReport;

public class SpeedRecord extends Record{
	private ArrayList<SpeedLogReport> dailyspeedlogs;

	public SpeedRecord() {
		super();
		dailyspeedlogs = new ArrayList<SpeedLogReport>();
	}

	public void setSpeedlogs(ArrayList<SpeedLogReport> dailyspeedlogs) {
		this.dailyspeedlogs = dailyspeedlogs;
	}

	public ArrayList<SpeedLogReport> getSpeedlogs() {
		return dailyspeedlogs;
	}

    @Override
	public void display(){
            super.display();
    }

    @Override
	public void displayLogs() {
    	if (dailyspeedlogs.size() > 0) {
    		for(SpeedLogReport l : dailyspeedlogs) {
    			l.display();
    		}
    	}
    }
}
